<?php
/*
 * @Author: CHINAKAIYUAN<sunkaiyuan@namenode.cn>
 * @Date: 2022-02-02 19:42:06
 * @LastEditTime: 2023-10-19 16:28:27
 * @LastEditors: 孙开源 && sunkaiyuan@namenode.cn
 * @Description: 
 */

namespace App\Repositories;

use App\Models\MpcCustAllocation;


class MpcCustAllocationRepository extends Repositories
    {

    protected $relation_models = [
        'creator',
        'updator',
        'deletor',
        'status',
        'attachments',
        'details' => [
            "material",
            "location",
            "company",
            "oldcompany",
        ]
    ];
    public function boot(MpcCustAllocation $model)
        {
        $this->model = $model;
        }
    public function save($data = null, $withSort = false)
        {
   
        return parent::autosave($data, $withSort);
        }

    }